
from random import*
n=int(input())
s=0
for i in range(0,n):
    x=randint(-100,100)
    y=randint(-100,100)
    print(x,y)
    if x <=5 and y<=5 and x>=-7 and y>=-8:
        s+=1
 
print (s)
     
 
   
